package com.tledu.spring.dao.impl;

import com.tledu.spring.dao.IUserDao;
import com.tledu.spring.model.User;
import lombok.Setter;

/**
 * @author cyrus
 */
public class UserDaoImpl implements IUserDao {
    @Setter
    private int databaseId;

    @Override
    public User selectById(int id) {
        System.out.println("选择了数据库"+databaseId);
        this.databaseId += 1;
        System.out.println("调用了查询方法");
        User user = new User();
        user.setUsername("测试");
        return user;
    }
}
